<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <h1>发送邮箱页面</h1>
    <a class="item" th:href="@{/logout}">
        <i class="address card icon"></i> 注销
    </a>
    <a class="item" th:href="@{/index}">
        <i class="address card icon"></i> 主页
    </a>
    <div><span style="color: green" th:text="${msg}"></span></div>
    <form th:action="@{/mail/fileMail}" method="post" enctype="multipart/form-data">
        邮箱标题：<input type="text" name="subject" placeholder="标题"><br>
        邮箱内容：<input type="text" name="text" placeholder="内容"><br>
        文件：<input type="file" name="file"> <br>
        接受者的邮箱：<input type="email" name="to"placeholder="邮箱qq.com"><br>
        发送者的邮箱：<input type="email" name="from" placeholder="邮箱qq.com">目前只能固定发送者的邮箱:2336164407@qq.com <br>
        <input type="submit" value="发送">
    </form>

</body>
</html>